package com.hnu.seckill.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
@AllArgsConstructor
public enum RespBeanEnum {
    SUCCESS(200, "SUCCESS"),
    ERROR(500, "服务端异常"),
    LOGIN_ERROR(501, "用户名或者密码不正确"),


    MOBILE_ERROR(502, "手机号码格式不正确"),
    BIND_ERROR(503, "参数校验异常"),
    SESSION_ERROR(504, "SESSION 错误"),
    ORDER_NOT_EXIST(505, "订单不存在"),
    EMPTY_STOCK(506, "空库存"),
    REPEAT_ERROR(507, "限购一件"),
    PHNOE_NOT_EXIST(508, "手机号码不存在"),
    UPDATE_FAIL(509, "更新失败");


    private final Integer code;
    private final String msg;
}
